﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace DBO_ShopMob
{
    /// <summary>
    /// Classe representant toutes les informations d'un client
    /// </summary>
    [DataContract]
    public class Client
    {
        public Client() { }
        public Client(string id, string civilite, string nom, string prenom, string mdp, string email, string adresse, string cp, string ville, string fixe, string mobile, DateTime dtnaiss)
        {
            this.idClient = id;
            this.civilite = civilite;
            this.nom = nom;
            this.prenom = prenom;
            this.motDePasse = mdp;
            this.email = email;
            this.adresse = adresse;
            this.cp = cp;
            this.ville = ville;
            this.telFixe = fixe;
            this.telMobile = mobile;
            this.dateNaissance = dtnaiss;
        }


        #region "propriete"
        private string idClient;
        [DataMember]
        public string IdClient
        {
            get { return idClient; }
            set { idClient = value; }
        }

        private string civilite;
        [DataMember]
        public string Civilite
        {
            get { return civilite; }
            set { civilite = value; }
        }

        private string nom;
        [DataMember]
        public string Nom
        {
            get { return nom; }
            set { nom = value; }
        }

        private string prenom;
        [DataMember]
        public string Prenom
        {
            get { return prenom; }
            set { prenom = value; }
        }

        private string motDePasse;
        [DataMember]
        public string MotDePasse
        {
            get { return motDePasse; }
            set { motDePasse = value; }
        }

        private string email;
        [DataMember]
        public string Email
        {
            get { return email; }
            set { email = value; }
        }

        private string adresse;
        [DataMember]
        public string Adresse
        {
            get { return adresse; }
            set { adresse = value; }
        }

        private string cp;
        [DataMember]
        public string Cp
        {
            get { return cp; }
            set { cp = value; }
        }

        private string ville;
        [DataMember]
        public string Ville
        {
            get { return ville; }
            set { ville = value; }
        }

        private string telFixe;
        [DataMember]
        public string TelFixe
        {
            get { return telFixe; }
            set { telFixe = value; }
        }

        private string telMobile;
        [DataMember]
        public string TelMobile
        {
            get { return telMobile; }
            set { telMobile = value; }
        }

        private DateTime dateNaissance;
        [DataMember]
        public DateTime DateNaissance
        {
            get { return dateNaissance; }
            set { dateNaissance = value; }
        }
        #endregion
    }
}
